//----导出组件
import type { App } from "vue";
//全局样式
import "./styles/index.scss";
//添加组件.
import { addViteMenus, i18n, addDynamicRoute } from "jmash-core";
import unionRoutes from "@/router/index";
// 本地语言包
import { loadLang } from "./lang";
// 组件
import MomentPlugin from "./utils/momentPlugin";
const modules = import.meta.glob("./views/**/**.vue");

const jobs = {
  install(app: App) {
    addViteMenus(modules, 7);
    addDynamicRoute(unionRoutes);
    loadLang(i18n);
    app.use(MomentPlugin);
  },
};
export default jobs;
